﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace CoCaNgua
{
    class Player
    {
        private Knight[] _knights;
        private Color _colour;
        

        public Color Colour
        {
            get { return _colour; }
            set { _colour = value; }
        }
        public Knight[] Knights
        {
            get { return _knights; }
            set { _knights = value; }
        }

        private bool _bTurn;

        public bool bTurn
        {
            get { return _bTurn; }
            set { _bTurn = value; }
        }

        private int _number;

        public int Number
        {
            get { return _number; }
            set { _number = value; }
        }
        
        public Player()
        {
        }

        public Player(Color c):this()
        {

            this.Colour = c;
            Knights = new Knight[4];
            Knights[0] = new Knight(c, 0);
            Knights[1] = new Knight(c, 1);
            Knights[2] = new Knight(c, 2);
            Knights[3] = new Knight(c, 3);
            // Thu tu nguoi choi: 0, 1, 2, 3
            if (c == Color.Green)
                Number = 0;
            else if (c == Color.Red)
                Number = 1;
            else if (c == Color.Blue)
                Number = 2;
            else
                Number = 3;

            if (c == Color.Green)            
                bTurn = true;                            
            else
                bTurn = false;
        }
    }
}
